package dao;

import java.sql.Connection;
import java.sql.DriverManager;
public class Dao {
	public Connection getConexao(){
		Connection conexao=null;
		String usuario="root";
		String senha="z2d8af57q";
		try{
			Class.forName("com.mysql.jdbc.Driver");
			conexao=DriverManager.getConnection("jdbc:mysql://localhost:3306/saladodebeleza", usuario, senha);
		}catch(Exception e){
			e.printStackTrace();
		}
		return conexao;
	}
	
}
